package priv.mill.demo;

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;

public class MyListener implements MessageListener{

	public void onMessage(Message message) {
			try {
				System.out.println(String.format("订阅1消息：%s;", ((TextMessage) message).getText()));
			} catch (JMSException e) {
				e.printStackTrace();
			}
	}

}
